package cn.tx.service.Impl;

import cn.tx.dao.BookcategoryDao;
import cn.tx.model.Bookcategory;
import cn.tx.service.BookcategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class BookcategoryServiceImpl implements BookcategoryService {

    @Autowired
    private BookcategoryDao bookDao;
    @Override
    public int addBookcategory(Bookcategory bookcategory)
    {
        return bookDao.addBookcategory(bookcategory);
    }       ;
    @Override
    public List<Bookcategory> findList(Map<String,Object> querymap)
    {
        return bookDao.findList(querymap);
    }
    @Override
    public int updateBookcategoryById(Bookcategory bookcategory) {
        return bookDao.updateBookcategoryById(bookcategory);
    };
    @Override
    public int delete(String ids) {
        return bookDao.delete(ids);
    };
    @Override
    public Bookcategory findBybookcategory(String bookcategory){
        return bookDao.findBybookcategory(bookcategory);
    };
    @Override
    public int findTotal(Map<String, Object> querymap) {
        return bookDao.findTotal(querymap);
    };
}
